package com.tech.connect.api;


import com.ksy.common.utils.CommonApiUtils;
import com.tech.connect.model.ItemRenMai;
import com.tech.connect.model.PagerModel;

import java.util.HashMap;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;


/**
 * Created by Ksy
 */

public class ZhuanWaiKuaiHttp extends CommonApiUtils {
    public static Map<String, Object> getMap() {
        return new HashMap<>();
    }

    public interface ConnectApiServer {

        @POST("v1/talent/tender/page")
        Observable<BaseEntity<PagerModel<ItemRenMai>>> zhuanwaikuai(@Body Map<String, Object> map);

        @POST("v1/talent/tender/record/page")
        Observable<BaseEntity<PagerModel<ItemRenMai>>> toubiaoren(@Body Map<String, Object> map);


        @POST("v1/talent/tender/win-record/page")
        Observable<BaseEntity<PagerModel<ItemRenMai>>> zhongbiaoren(@Body Map<String, Object> map);


        @POST("v1/talent/tender/deposit/page")
        Observable<BaseEntity<PagerModel<ItemRenMai>>> baozhengjin(@Body Map<String, Object> map);

        @POST("v1/talent/tender/reward/page")
        Observable<BaseEntity<PagerModel<ItemRenMai>>> zijintuoguan(@Body Map<String, Object> map);

        @POST("v1/talent/tender/foot-print/page")
        Observable<BaseEntity<PagerModel<ItemRenMai>>> zuji(@Body Map<String, Object> map);

    }


    public static Observable<BaseEntity<PagerModel<ItemRenMai>>> zuji(Map<String, Object> map, final BaseEntityOb<PagerModel<ItemRenMai>> ob) {
        return ob.bindObed(ConnectApiManager.getApiServer(ConnectApiServer.class).zuji(map));
    }

    public static Observable<BaseEntity<PagerModel<ItemRenMai>>> zijintuoguan(Map<String, Object> map, final BaseEntityOb<PagerModel<ItemRenMai>> ob) {
        return ob.bindObed(ConnectApiManager.getApiServer(ConnectApiServer.class).zijintuoguan(map));
    }

    public static Observable<BaseEntity<PagerModel<ItemRenMai>>> baozhengjin(Map<String, Object> map, final BaseEntityOb<PagerModel<ItemRenMai>> ob) {
        return ob.bindObed(ConnectApiManager.getApiServer(ConnectApiServer.class).baozhengjin(map));
    }

    public static Observable<BaseEntity<PagerModel<ItemRenMai>>> zhongbiaoren(Map<String, Object> map, final BaseEntityOb<PagerModel<ItemRenMai>> ob) {
        return ob.bindObed(ConnectApiManager.getApiServer(ConnectApiServer.class).zhongbiaoren(map));
    }

    public static Observable<BaseEntity<PagerModel<ItemRenMai>>> zhuanwaikuai(Map<String, Object> map, final BaseEntityOb<PagerModel<ItemRenMai>> ob) {
        return ob.bindObed(ConnectApiManager.getApiServer(ConnectApiServer.class).zhuanwaikuai(map));
    }

    public static Observable<BaseEntity<PagerModel<ItemRenMai>>> toubiaoren(Map<String, Object> map, final BaseEntityOb<PagerModel<ItemRenMai>> ob) {
        return ob.bindObed(ConnectApiManager.getApiServer(ConnectApiServer.class).toubiaoren(map));
    }


}
